#ifndef __INPUT_H__
#define __INPUT_H__

bool keys[256];
unsigned int mdown[7];
unsigned int mdowntm[7];
unsigned int kdowntm[256];

unsigned int charkeyvalue;
unsigned int charkeydata;

namespace sgl_input
{
	float dmx;
	float dmy;
	float omx;
	float omy;
	float cmx;
	float cmy;

	int lmx;
	int lmy;

	int cursor_showed;

	void init();
};

int KeyDown(int num);
int KeyHit(int num);
int MouseX();
int MouseY();
bool MouseInRect(int x1,int y1,int width,int height);
bool MouseInZone(int x1,int y1,int x2, int y2);

void MoveMouse(int x,int y);
unsigned char MouseDown(unsigned char ind);
unsigned int MouseHit(unsigned char ind);

float MouseXSpeed();
float MouseYSpeed();

int GetKey();

void ShowPointer();
void HidePointer();

#endif
